﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace YAPL.Language.Core.Exceptions {
	/// <summary>
	/// Provides base class for all exceptions thrown by program while running
	/// </summary>
	public class YAPLException : Exception {
		public static void PrintRuntimeExceptionMessage(string s) {
			Console.WriteLine("{0}Runtime exception occured. Message: {1}", Environment.NewLine,s);
		}
		public YAPLException() {}
		public YAPLException(string message) : base(message) {}
		public YAPLException(string message, Exception innerException) : base(message, innerException) {}
		protected YAPLException(SerializationInfo info, StreamingContext context) : base(info, context) {}
	}
}
